﻿using Autodesk.Windows;
using System.Windows.Media;
using System.Windows.Controls;

namespace Galaxy.AutoCAD.Ribbons
{
    public class RibbonButtonTool
    {
        public static RibbonButton CreateRibbonButton(string name, string text, bool showImage, bool showText, ImageSource image, ImageSource largeImage, RibbonItemSize size, Orientation orientation, string commandParameter)
        {
            RibbonButton rb = new RibbonButton();
            rb.Name = name;
            rb.Text = text;
            rb.ShowImage = showImage;
            rb.ShowText = showText;
            rb.Image = image;
            rb.LargeImage = largeImage;
            rb.Size = size;
            rb.Orientation = orientation;
            rb.CommandParameter = commandParameter;
            rb.CommandHandler = new CommandHandlerTool();
            return rb;
        }
        public static RibbonButton CreateRibbonButton(string name, string text, bool showImage, bool showText, RibbonItemSize size, Orientation orientation, string commandParameter)
        {
            RibbonButton rb = new RibbonButton();
            rb.Name = name;
            rb.Text = text;
            rb.ShowImage = showImage;
            rb.ShowText = showText;
            rb.Size = size;
            rb.Orientation = orientation;
            rb.CommandParameter = commandParameter;
            rb.CommandHandler = new CommandHandlerTool();
            return rb;
        }
    }
}
